var globalVariable="this is global variable"

function globalFunction(){
  var localValiable="this is local variable";
  console.log('visit global/local variable');
  console.log(localValiable);
  console.log(globalVariable);

  globalVariable="this is change";
  console.log(globalVariable);

  function localFunction(){
    var innerLocalVariable="this is inner local variable";

    console.log('visit global/local/innerLocal variable');
    console.log(innerLocalVariable);
    console.log(localValiable);
    console.log(globalVariable);
  }
  localFunction();
}

globalFunction();
